﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml.Serialization;

namespace SimpleRest.WebTest.Entities
{
    [System.Xml.Serialization.XmlRoot(ElementName = "Products")]
    public class ProductCollection : List<Product>
    {
        public ProductCollection() { }
        public ProductCollection(IEnumerable<Product> items)
        {
            foreach (var item in items)
                this.Add(item);
        }

        public int Count { get; set; }
    }
}